<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/config/siteconfiglist" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>配置管理</h1>
    </div>
    <div class="filterbar">
      <label for="">站点列表：
        <select name="sitelist" id="J_sitelist">
          <volist name="list" id="list">
            <option value="{$list['siteid']}" <eq name="list.siteid" value="$ssid">selected</eq>>{$list['name']}</option>
          </volist>
        </select>
      </label>
    </div>
    <hr>
    <div class="form">
      <form id="J_form" name="Form1" method="post" action="{:URL('cms/Config/doSetConfig')}">
        <input type="hidden" name="sid" value="{$ssid}">
        <dl class="kv">
          <dt>
            <label>设置栏目模版：</label>
            <!-- 网站名称 -->
          </dt>
          <dd>
            <select name="channelTemplate" id="channelTemplate">
              <notempty name="channelslist">
                <volist name="channelslist" id="channel">
                  <option value="{$channel.template_name}" <eq name="channel.template_name" value="$channelTemplate">selected</eq>>{$channel.template_name}</option>
                </volist>
                <else/>
                <option value="{$channelTemplate}">{$channelTemplate}</option>
              </notempty>
            </select>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>设置内容模版：</label>
            <!-- 网站名称 -->
          </dt>
          <dd>
            <select name="contentTemplate" id="contentTemplate">
              <notempty name="contentslist">
                <volist name="contentslist" id="content">
                  <option value="{$content.template_name}" <eq name="content.template_name" value="$contentTemplate">selected</eq>>{$content.template_name}</option>
                </volist>
                <else/>
                <option value="{$contentTemplate}">{$contentTemplate}</option>
              </notempty>
            </select>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>栏目页面命名规则：</label>
          </dt>
          <dd>
            <input class="input-text" name="catenaming" type="text" value="{$catenaming}">
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>内容页面命名规则：</label>
          </dt>
          <dd>
            <input class="input-text" name="artnaming" type="text" value="{$artnaming}">
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>文件上传保存位置：</label>
          </dt>
          <dd>
            <input class="input-text" name="picSavePath" type="text" value="{$picSavePath}" maxlength="20">
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>新增或修改栏目后是否自动生成页面：</label>
          </dt>
          <dd>
            <label>
              <input class="s-ck" name="createchannel" type="radio" value="1" <eq name="createchannel" value="1">checked</eq>>是</label>
            <label>
              <input class="s-ck" name="createchannel" type="radio" value="0" <neq name="createchannel" value="1">checked</neq>>否</label>
            <br />
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>新增或修改内容后是否自动生成页面：</label>
          </dt>
          <dd>
            <label>
              <input class="s-ck" name="createcontent" type="radio" value="1" <eq name="createcontent" value="1">checked</eq>>是</label>
            <label>
              <input class="s-ck" name="createcontent" type="radio" value="0" <neq name="createcontent" value="1">checked</neq>>否</label>
            <br />
          </dd>
        </dl>
        <div class="actions">
          <input class="btn btn-y" type="submit" value="确定" />
        </div>
      </form>
    </div>
  </div>
</body>

</html>
